package com.googlecode.continuity.plugin.codecomment.client;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.googlecode.continuity.core.client.Reply;

/**
 * CodeCommentRPCAsync
 *
 * @author Peter Schmitt <aragos@aragos.de>
 */
public interface CodeCommentRPCAsync {

  void getCommentsForFile(CodePointer pointer, AsyncCallback async);

  void getCommentsForFile(CodePointer pointer, long firstVersion, long lastVersion, AsyncCallback async);

  void addComment(CodeComment comment, AsyncCallback async);

  void addReply(CodeComment comment, Reply reply, AsyncCallback async);
}
